#include "delay.h"
void Delayms(unsigned int ms)		//@12.000MHz
{
	unsigned char i, j;

	while(ms--)
	{
		i = 2;
		j = 239;
		do
		{
			while (--j);
		} while (--i);
	}
	
}



void Delayus(unsigned int us)		//@12.000MHz
{
	unsigned char i, j;

	while(us--)
	{
		i = 2;
		j = 239;
		do
		{
			while (--j);
		} while (--i);
	}
	
}



void delay(unsigned int time)         
 {
  unsigned int  i,j;             
  for(i=0;i<time;i++)    
     for(j=0;j<50;j++); 
 }
